package com.ant.storage;

import com.ant.storage.common.ApplicationContextService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableScheduling
@MapperScan("com.ant.storage.mapper")
public class StorageApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context= SpringApplication.run(StorageApplication.class, args);
        ApplicationContextService.setApplicationContext(context);
    }
    //  https://blog.csdn.net/weixin_56995925/article/details/120543965
    // 本地回调地址
    //  https://chenjialun.mynatapp.cc/storageApi/DingDing/CallBack
    // 钉钉回调地址
}
